import request from '@/utils/request'

// 创建活动
export function createActivity(data = {}) {
  return request.post('/activity/create', data)
}

// 活动列表
export function getActivityList(data = {}) {
  return request.post('/activity/page', data)
}

// 活动详情
export function getActivityDetail(params = {}) {
  return request.get('/activity/detail', { params })
}

// 删除活动
export function deleteActivity(params = {}) {
  return request.get('/activity/delete', { params })
}

// 活动上下架
export function editActivityStatus(params = {}) {
  return request.get('/activity/down', { params })
}

